home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Shells / zsh / Source / dots / zshrc < prev   
Encoding:
Text File  |  1992-05-02  |  2.2 KB  |  89 lines

  1. #
  2. # my rc file for zsh 2.2
  3. # all this runs in interactive shells only
  4. #
  5.  
  6. # search path for the cd command
  7. cdpath=(. ~ ~/src/cs320 ~/src)
  8.  
  9. # where to look for function definitions
  10. # fpath=(~/func)
  11.  
  12. # useful directory
  13. csrc=/usr/princeton/common/src
  14.  
  15. # use hard limits, except for a smaller stack and no core dumps
  16. unlimit
  17. limit stack 8192
  18. limit core 0
  19. limit -s
  20.  
  21. umask 022
  22.  
  23. # define some aliases
  24. alias a=alias
  25. a a.out=./a.out sendmail=/usr/lib/sendmail c=cp 0=vi 09='vi -t' 00=r
  26. a d=dirs en='enscript -2rGh' fm='finger -m' grep=egrep h=history
  27. a hinfo='host -t hinfo' j=jobs l='ls -AF' lock='lock -p -60000'
  28. a lsd='ls -d */' m=make mm=less
  29. a nrable='ls -AFltrd *(^R)' sz='ls -l | sort -n +3 | tail -20'
  30. a sn='sed -n' nw='l -ltr | tail' pd=pushd pop=popd mroe=more
  31. a rable='ls -AFltrd *(R)' strings='strings -' t=cat
  32. a v=mv where='hostname; echo >/dev/null' k9='kill -9' whoami='echo root'
  33. a find='noglob find' bindkey='noglob bindkey' dh='dirs -v'
  34. a mv='nocorrect mv' z=suspend
  35.  
  36. # global aliases
  37. a -g 'GF'='| fgrep -f ~/.friends' G='| grep' M='| less' cex='/u/pup/centrex'
  38.  
  39. # setenv for csh junkies (including tset)
  40. setenv() { export $1=$2 }
  41.  
  42. manpath=(/usr/man /usr/princeton/man /u/cad/man /usr/lang/man)
  43. export MANPATH
  44.  
  45. # filename completion suffixes to ignore
  46. fignore=(.o .pro .old)
  47.  
  48. # hosts to use for completion
  49. hosts=(uunet.uu.net `hostname` wuarchive.wustl.edu quiche.cs.mcgill.ca)
  50.  
  51. PROMPT='%l %T %m[%h] '
  52.  
  53. # prompt on the right side of the screen
  54. RPROMPT=' %~'
  55.  
  56. # some environment variables
  57. export MAILCALL='NEW MAIL! '
  58. export YOUSAID='In %C you wrote:'
  59. export ATTRIBUTION='%f wrote:'
  60.  
  61. # functions to autoload
  62. # autoload cx acx mere yu yp randline proto namedir ilogin
  63.  
  64. MAILCHECK=30
  65. HISTSIZE=600
  66. DIRSTACKSIZE=50
  67.  
  68. # lots of options
  69. setopt notify globdots correct pushdtohome cdablevars autolist \
  70.     sunkeyboardhack correctall autocd recexact longlistjobs mailwarning \
  71.     autoresume histignoredups pushdsilent noclobber \
  72.     autopushd pushdminus extendedglob rcquotes
  73. unsetopt bgnice
  74.  
  75. # watch for my friends
  76. watch=($(cat ~/.friends))
  77. WATCHFMT='%n %a %l from %m at %t.'
  78. LOGCHECK=0
  79.  
  80. export LESS=-ainx3
  81. unhash p
  82.  
  83. # some nice bindings
  84. bindkey '^X^Z' universal-argument ' ' magic-space
  85. bindkey '^X^A' vi-find-prev-char-skip
  86. bindkey '^Z' accept-and-hold
  87. bindkey -s '\M-/' \\\\
  88. bindkey -s '\M-=' \|
  89.